<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>8 模板语法-指令</title>
    <script src="js/vue.global.js"></script>
</head>
<body>
<div id="app">
    <template v-if="seen">
        <h1>网站</h1>
        <p>Google</p>
        <p>Runoob</p>
        <p>Taobao</p>
    </template>
</div>

<script>
    const app = {
        data() {
            return {
                seen: true /* 改为false，信息就无法显示 */
            }
        }
    }

    Vue.createApp(app).mount('#app')
</script>
</body>
</html>